package pub.cleangao.memm.exception;



public class ConnectionUnavailable extends RuntimeException {

    private String host;
    private int port;

    public ConnectionUnavailable(String message, Throwable cause) {
        super(message, cause);
    }

    public ConnectionUnavailable(String message) {
        super(message);
    }

    public ConnectionUnavailable() {
        super("Rpc connection unavailable.");
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }
}
